//
//  DIDWebViewController.h
//  MT
//
//  Created by 清风徐来 on 2023/8/21.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class LogCatLocalModel;

@protocol LogCatWebControllerDelegate <NSObject>

- (void)web_restartSDK;
- (void)web_reloadRemoteConfig;
- (void)web_setPushModeForOff:(BOOL)enable;
- (void)web_destroyGeTuiSDK;

@end

@interface LogCatWebController : UIViewController

@property (nonatomic, copy) id<LogCatWebControllerDelegate>delegate;

/// 初始化
/// - Parameters:
///   - configModel: 配置Model
///   - delegate: 代理
- (instancetype)initWithConfigModel:(LogCatLocalModel *)configModel delegate:(id<LogCatWebControllerDelegate>)delegate;

/// 初始化
/// - Parameter localUrl: 链接
- (instancetype)initWithUrl:(NSString *)localUrl;

/// 加载链接
/// - Parameter localUrl: ；链接地址
- (void)loadWebPageWithUrl:(NSString *)localUrl;

// 重新加载
-(void)reloadPage;

// 清除WKWebView的缓存
- (void)removeAllCached;

@end

NS_ASSUME_NONNULL_END
